import http from "@/utils/http"
// const prefixUrl = "/skuproduct"
export default {
    role: {
        query: "GET:/skuproduct",
        create: "POST:/skuproduct",
        select: "GET:/skuproduct/:id",
        update: "PUT:/skuproduct/:id",
        createPrice: "POST:/skupricelist",
        delete: "DELETE:/skuproduct/:id",

    },
    query(params, prefixUrl = "/skuproduct") {
        return http.get(prefixUrl, params)
    },
    create(params, prefixUrl = "/skuproduct") {
        return http.post(prefixUrl, params)
    },
    createPrice(params, prefixUrl = "/skupricelist") {
        return http.post(prefixUrl, params)
    },
    select(id, prefixUrl = "/skuproduct") {
        return http.get(prefixUrl + "/" + id)
    },
    update(id, params, prefixUrl = "/skuproduct") {
        return http.put(prefixUrl + "/" + id, params)
    },
    delete(id, prefixUrl = "/skuproduct") {
        return http.delete(prefixUrl + "/" + id)
    },


}